# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-fcgi-procmanager
_pkgreal=FCGI-ProcManager
pkgver=0.28
pkgrel=4
pkgdesc="Functions for managing FastCGI applications"
url="https://metacpan.org/release/FCGI-ProcManager/"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/FCGI-ProcManager-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="dacf7a18b7c7d402769bdbfbe136e1c11fb9c7565d29e1d1892a055136052117ad85b4ec2b93dd34ee5f2a907fde6919089b86ad40c5d602011f8f6e58b9169e  FCGI-ProcManager-0.28.tar.gz"
